package cc.cc4414.cc02.chat.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import cc.cc4414.cc02.chat.entity.Friend;

/**
 * @author cc 2018年8月16日
 */
public interface FriendRepository extends JpaRepository<Friend, Long> {
	Friend findByUserIdAndFriendId(Long userId, Long friendId);

	List<Friend> findByUserId(Long userId);

	List<Friend> findByFriendIdAndState(Long userId, int state);

	List<Friend> findByUserIdAndState(Long userId, int state);
}
